<?php
require_once '../application/library/db/gcDaoFactory.php';
require_once '../application/constant/constant.php';
require_once '../application/constant/daoConfig.php';
require_once '../application/library/exception/gcExceptionDealer.php';

/**
 * common_services_categoryTagService
 * 共通
 * @author    Suda
 * @version   1.0
 */

class common_services_categoryTagService {
    
    private $daoFactory;

    /**
    * 构造函数
    */
    public function __construct(){
        $this->daoFactory=gcDaoFactory::getInstance();
    }

    public function pbGetGoodsFirstCategory(){
        $objGoodsFirstCATGDao = $this->daoFactory->createDao(daoConfig::T_EC_M_GOODS_FIRST_CATG_DAO);
        $arrGoodsFirstCategory = $objGoodsFirstCATGDao->pbGetGoodsFirstCategory();
        unset($objGoodsCATGDao);
        return $arrGoodsFirstCategory;
    }

    public function pbGetGoodsSecondCategory($firstCatgNo){
        $objGoodsSecondCATGDao = $this->daoFactory->createDao(daoConfig::T_EC_M_GOODS_SECOND_CATG_DAO);
        $arrGoodsSecondCategory = $objGoodsSecondCATGDao->pbGetGoodsSecondCategory($firstCatgNo);
        unset($objGoodsCATGDao);
        return $arrGoodsSecondCategory;
    }
}